﻿#region FileHeader
//////////////////////////////////////////////////////////////////////////////////
// Author:                          Hector Llanos
// Date:                            08.27.2010
// FileName:                        CGlobal.cs
// Reason:                          globals that can easily be used throughout the game
//////////////////////////////////////////////////////////////////////////////////
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Globals
{
    public static class CGlobal
    {
        private static int screenwidth = 1296;
        private static int screenheight = 900;

        private static Random rand = new Random(DateTime.Now.Second);
        public enum Players { PLAYER1 = 0, PLAYER2, PLAYER3, PLAYER4 , MAXPLAYERS};
        public static Random Rand
        {
            get { return CGlobal.rand; }
        }
        public static int Screenwidth
        {
            get { return screenwidth; }
        }
        public static int Screenheight
        {
            get { return screenheight; }
        }
        public static float Lerp(float fStart, float fEnd, float fPercent)
        {
            return fStart + ((fEnd - fStart) * fPercent);
        }
        public static Vector2 Lerp(Vector2 vStart, Vector2 vEnd, float fPercent)
        {
            return vStart + ((vEnd - vStart) * fPercent);
        }
    }
}
